package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 余额明细对象 sys_worker_money
 * 
 * @author jjp
 * @date 2020-04-27
 */
public class SysWorkerMoney extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long moneyId;

    /** $column.columnComment */
    private Long userId;

    /** 当type为1时必填 */
    @ApiModelProperty(name = "当type为1时必填")
    private Long withdrawalId;

    /** 当type为0时必填服务订单id */
    @ApiModelProperty(name = "当type为0时必填服务订单id")
    private Long orderId;

    /** $column.columnComment */
    @ApiModelProperty(name = "当type为0时必填服务订单id")
    private Double money;

    /** 0-收入 1-提取 2-返佣 */
    @ApiModelProperty(name = "0-收入 1-提取 2-返佣")
    private String moneyType;

    public void setMoneyId(Long moneyId) 
    {
        this.moneyId = moneyId;
    }

    public Long getMoneyId() 
    {
        return moneyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setWithdrawalId(Long withdrawalId) 
    {
        this.withdrawalId = withdrawalId;
    }

    public Long getWithdrawalId() 
    {
        return withdrawalId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public void setMoneyType(String moneyType)
    {
        this.moneyType = moneyType;
    }

    public String getMoneyType() 
    {
        return moneyType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("moneyId", getMoneyId())
            .append("userId", getUserId())
            .append("withdrawalId", getWithdrawalId())
            .append("orderId", getOrderId())
            .append("money", getMoney())
            .append("moneyType", getMoneyType())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
